<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>区块名：</label>
				<select name="block_id">
					<option value="">未选择</option>
					<php>foreach(C('BM_BLOCK_NAME') as $k=>$v){</php>
					<option value="{$k}" <?php if($_REQUEST['block_id']==$k)echo "selected"?>>{$v}</option>
					<php>}</php>
				</select>
			</li>
			<li>
				<label>区块类型：</label>
				<select name="type">
					<option value="">未选择</option>
					<php>foreach(C('BM_TYPE_NAME') as $k=>$v){</php>
					<option value="{$k}" <?php if($_REQUEST['type']==$k) echo "selected"?>>{$v}</option>
					<php>}</php>
				</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="800" height="480"><span>新增</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{id}" target="dialog" width="800" height="480" mask="true" warn="请选择数据"><span>编辑</span></a></li>
			
			<li class="line">line</li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
			<th width="60">编号</th>
			<th width="100" >区块名</th>
			<th width="100" >区块类型</th>
			<th width="100" >描述</th>
			<th width="100" >图片地址</th>
			<th width="100" >链接地址</th>
			<th width="200" >有效时间</th>
			<th width="50" >排序</th>
			<th width="50" >状态</th>
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="id" rel="{$vo['id']}">
				<td>{$vo['id']}</td>
				<td><?php echo C('BM_BLOCK_NAME.'.$vo['block_id']);?></td>
				<td><?php echo C('BM_TYPE_NAME.'.$vo['type']);?></td>
				<td>{$vo['desc']}</td>
				<td>{$vo['img_url']}</td>
				<td>{$vo['href_url']}</td>
				<td>{$vo['start_time']} - {$vo['end_time']}</td>
				<td>{$vo['sort']}</td>
				<td><?php echo C('IS_ACTIVE_NAME.'.$vo['is_active'])?></td>
				
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


